//-----------------------------------------------------------------------------
//	File: ssd1306_i2c.c
//	Author: xialing
//		i2c mode dirver for ssd1306
//-----------------------------------------------------------------------------

#ifndef __SSD1306_I2C_H__
#define __SSD1306_I2C_H__

#include "stm32f10x.h"
#include "i2c.h"

//-----------------------------------------------------------------------------
//	ssd1306_init - ssd1306 initialization
//-----------------------------------------------------------------------------
void ssd1306_init(void);

//-----------------------------------------------------------------------------
//	ssd1306_reset - reset the ssd1306
//-----------------------------------------------------------------------------
void ssd1306_reset(void);

//-----------------------------------------------------------------------------
//	ssd1306_config - configure ssd1306
//-----------------------------------------------------------------------------
void ssd1306_config(void);

//-----------------------------------------------------------------------------
//	ssd1306_clear - clear the lcd
//-----------------------------------------------------------------------------
void ssd1306_clear(void);

//-----------------------------------------------------------------------------
//	ssd1306_refresh - refresh ram data to ssd1306
//-----------------------------------------------------------------------------
void ssd1306_refresh(void);

//-----------------------------------------------------------------------------
//	ssd1306_draw_pixel - draw a pixel
//-----------------------------------------------------------------------------
void ssd1306_draw_pixel(uint8_t x, uint8_t y, uint8_t c);

//-----------------------------------------------------------------------------
//	ssd1306_get_pixel - get a pixel
//-----------------------------------------------------------------------------
uint8_t ssd1306_get_pixel(uint8_t x, uint8_t y);

#endif
